<!--
 * @Author: your name
 * @Date: 2021-10-27 15:56:34
 * @LastEditTime: 2021-10-27 17:23:22
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /gitee-project/whale-admin-web/src/components/fontIcons/index.vue
-->
<template>
  <div>
    <div class="icons-components">
      <el-row >
        <el-col :span="6" v-for="(item) in icons" :key="item" style="padding:10px;">
          <el-card class="font-card" @click="getFontIcons(item)"><i :class="item"></i> {{item}}</el-card>
        </el-col>
      </el-row>
    </div>  
  </div>
</template>

<script lang="ts">
import { defineComponent, nextTick, watch, ref, reactive } from "vue";
import { ElMessage, ElMessageBox, ElLoading } from "element-plus";
import { icons } from './icons.ts'
export default defineComponent({
  components: {},
  props: {
    
  },
  setup(props, ctx) {
    let getFontIcons = (item) => {
      console.log(item)
      ctx.emit('setFontIcons', item)
    }
    return {
      icons,
      getFontIcons
    };
  }
});
</script>

<style lang="scss" scoped>
.font-card{
  cursor: pointer;
}
</style>
